/*window.onload = function() {
	    var storage=window.localStorage;
		var Words = document.getElementById("words");
		var Who = document.getElementById("who");
		var TalkWords = document.getElementById("talkwords");
		var TalkSub = document.getElementById("talksub");
		
		var myname = storage.getItem("username");
		Who.innerHTML="<option value="+myname+"> "+myname+" 说:</option>";
		
		
		TalkSub.onclick = function() {
			var str="";
			var msg=TalkWords.value;
			// 消息为空时弹窗
			if (TalkWords.value == "") {
				return;
			}
			//如果Who.value为0n那么是 A说
			if(Who.value == 0){
	             str = '<div class="atalk"><span>A说 :' + msg +'</span></div>';
	         }else{
	             str = '<div class="btalk"><span>'+myname+'说 :' + msg +'</span></div>' ;  
	             //window.location.href="http://localhost:8080/first/index.html";
	             $.ajax({
		 				url:"http://localhost:8080/chat/handleChat",
		 				type:"post",
		 				data:
		 				{msg:msg,fkow=fiwo},
		 				function(data){
		 					console.log("heeh");
		 					console.log(data);
		 				}
		             });
	             
	         }
			 
			 Words.innerHTML = Words.innerHTML + str;
		}

	}*/